<h2>
<a href="/">Home</a> &#187; <b><?= $this->groupname ?></b>
 

<? if (sizeof($this->newsgroup->Files) > 1): ?>
<select onchange="location.href='/request/join/groupname/<?= $this->groupname ?>/renew/'+this.options[this.selectedIndex].value;">
  <? for ($x=0;$x<sizeof($this->newsgroup->Files);$x++): ?>
    <? $file = $this->newsgroup->Files[$x]; ?>
    <option value="<?= $x ?>"><?= $file['min'] ?>-<?= $file['max'] ?></option>
  <? endfor ?>
</select>
<? endif ?>

(<?= $this->newsgroup->Count ?> articles) 
 
 </h2>
<?
 

$cell = $this->liststyle=='list' ? 'detail' : 'thumb';

echo $this->liststyle=='list'
     ? '<table cellspacing="0">'
     : '<table><tr><td>';
?>


<?php foreach ($this->articlesets as $articleset):  

    $target = "/article-gallery/browse/group/{$this->groupname}/page/{$this->pagenumber}/article/{$articleset->index}/index/{$articleset->id}/show/1";
    $linkTo = "/request/gallery/group/{$this->groupname}/page/{$this->pagenumber}/article/{$articleset->index}/index/{$articleset->id}";
    $source = "/images/clear.gif";
    $link   = "javascript:void(0)";

    if ($articleset->type=='picture') { 
        $source = "/request/picture/name/{$this->groupname}/index/{$articleset->id}";
        $src = "/images/clear.gif"; 
        $bmlink = $this->url(array('controller'=>'request','action'=>'bookmark', 'article'=>$articleset->index));
        $faved  = $this->manager->Find($this->groupname, $articleset->id) ? "unbookmark" : "bookmark";
        $faved  = sprintf("<img src='/images/%s.png' align='absmiddle'/>%s", $faved, ucfirst($faved));
        $extra  = "<a href='{$bmlink}'>{$faved}</a>";
        $link   = $linkTo;
        $browse = "/article-gallery/{$this->groupname}/{$this->pagenumber}/{$articleset->index}/{$articleset->id}/1"; 
    } 
    else if ($articleset->type=='wmv') { $src = "/images/wmv-96_32.png"; }
    else if ($articleset->type=='m4v') { 
        $src    = "/images/mov-96_32.png";
        $link   = $linkTo;
    }
    else if ($articleset->type=='rar') { $src = "/images/rar-96_32.png"; } 
    else $src = "/images/clear.gif";
    if ($articleset->image) { 
        $key    = explode ('-', $articleset->id);
        $source = "/request/picture/name/{$this->groupname}/image/{$articleset->index}";
        $src    = "/images/clear.gif"; 
        $link   = "/request/gallery/group/{$this->groupname}/page/{$this->pagenumber}/article/{$articleset->index}/index/" . $key[0];  
    }


    echo $this->partial ("{$cell}.phtml", array("source"     => $source,
                                                "icon"       => $src,
                                                "articleset" => $articleset,
                                                "link"       => $link,
                                                "extra"      => $extra,
                                                "group"      => $this->groupname,
                                                "full"       => true,
                                                "target"     => $target,
                                                "browse"     => $browse ));
 endforeach;

echo $this->liststyle=='list'
     ? '</table>'
     : '</td></tr></table>';
 ?> 



<div align="center" id="dbx">

        <?  $p = new Default_Model_Paginator;
             $prefix = "/request/pagegroup/groupname/{$this->groupname}/async/async/";
             if (strlen($this->filter) > 0) $prefix .= "filter/{$this->filter}/";
             $prefix .= "pagenumber/";
             $a = "<a href='javascript:void(0)' onclick=\"LoadPageByPattern('%s%s', 'dbx')\">%s</a>";
             echo $p->Pages($this->articlesize, $this->pagenumber, $prefix, $a); ?>

</div>
<?

$pad = array(  'module'=>'tablet', 
                'controller'=>'group', 
                "action"=>"index", 
                'page'=>floor ($this->pagenumber * WEB_PAGE_SIZE / TABLET_PAGE_SIZE), 
                'groupname'=>NULL, 
                'group'=>$this->groupname   );


?>

<center>
View on 
<a href='<?= $this->url( $pad ); ?>' >tablet site</a>
</center>

















 
